using Codeflows.Results;
using Codeflows.Tracking;

namespace Codeflows.Dispatch.ResultHandlers
{
    class RetryHandler : ResultHandler<RetryResult>
    {
        protected override void Handle(CodeflowInstance instance, RetryResult result)
        {
            instance.Retry();
        }

        public override bool CanContinueDispatchLoop
        {
            get { return true; }
        }
    }
}